import request from '@/config/axios'

// 获取客服简介配置列表
export const getintroConfigSimpleList = async (params) => {
  return await request.get({ url: `/service/intro-config/page`, params })
}

// 创建客服简介
export const introConfigCreate = async (data) => {
  return await request.post({ url: `/service/intro-config/create`, data })
}

// 更新客服简介
export const introConfigUpdate = async (data) => {
  return await request.put({ url: `/service/intro-config/update`, data })
}

// 删除客服简介
export const introConfigDelete = async (id: number) => {
  return await request.delete({ url: `/service/intro-config/delete?id=` + id })
}

// 客服简介详情
export const getIntroConfig = async (id) => {
  return await request.get({ url: `/service/intro-config/get?id=${id}` })
}
